﻿<UserControl x:Class="ViCode_LeVi.Controls.VMTabBalanceAndOthers_LIQUIDITYPLAN_Item"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:vmcontrol="clr-namespace:ViCode_LeVi.Controls">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="3*"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>           
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>

        <vmcontrol:VMTextBox_MultiLine Text="{Binding Name, UpdateSourceTrigger = PropertyChanged}" Grid.Column="0" Margin="2"/>
        
        <vmcontrol:VMTextBox_Number Text="{Binding Year1, UpdateSourceTrigger = PropertyChanged}" Grid.Column="1" Margin="2"/>
        <vmcontrol:VMTextBox_Number x:Name="VMTextBox_Number_Year2" x:FieldModifier="public" Text="{Binding Year2, UpdateSourceTrigger = PropertyChanged}" Grid.Column="2" Margin="2"/>
        <vmcontrol:VMTextBox_Number x:Name="VMTextBox_Number_Year3" x:FieldModifier="public" Text="{Binding Year3, UpdateSourceTrigger = PropertyChanged}" Grid.Column="3" Margin="2"/>
        <vmcontrol:VMTextBox_Number x:Name="VMTextBox_Number_Year4" x:FieldModifier="public" Text="{Binding Year4, UpdateSourceTrigger = PropertyChanged}" Grid.Column="4" Margin="2"/>
        <vmcontrol:VMTextBox_Number x:Name="VMTextBox_Number_Year5" x:FieldModifier="public" Text="{Binding Year5, UpdateSourceTrigger = PropertyChanged}" Grid.Column="5" Margin="2"/>
        <Button VerticalAlignment="Top"  OverridesDefaultStyle="True" MinHeight="0" MinWidth="0" Margin="2"  Grid.Column="6"  Name="Button_Remove" Click="Button_Remove_Click"  Focusable="False">
            <Button.Content>
                <Image Source="pack://application:,,,/Images/closex.png" Stretch="Uniform"/>
            </Button.Content>
        </Button>
    </Grid>
</UserControl>
